package hlhj.fhp.supreme.activitys

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.bumptech.glide.Glide
import hlhj.fhp.supreme.BaseAty
import hlhj.fhp.supreme.R
import kotlinx.android.synthetic.main.activity_image_preview_aty.*
import uk.co.senab.photoview.PhotoViewAttacher

class ImagePreviewAty : BaseAty() {
    override fun getContentId(): Int {
        return R.layout.activity_image_preview_aty
    }

    override fun initView() {
        super.initView()
        val attacher = PhotoViewAttacher(photoView)
        Glide.with(this).load(intent.getStringExtra("img")).into(photoView)

        btExit.setOnClickListener {
            finish()
        }
    }
}
